Skip to main content

Action Launcher

Action Launcher

Use

The Action Launcher control displays as buttons all Actions defined for a specific entity. The control will only display the available Actions for the Stakeholder defined to access them. These actions are visible depending on the visibility rules configured for them. For more information about how to configure an action and set the visibility rule for them, refer to Actions.

Considerations

To use an Action Launcher Control:

  • You should have defined Actions related to the Entity.
  • Take into account the visibility defined for each Action:
    • If it is enabled to be shown in Processes.
    • If it is enabled for the Stakeholder accessing the activity.
    • If the visibility rule of the Action is met.
  • Action Launcher is not supported for Add forms in Tables.
  • A new process will launch ONLY if the Stakeholder executing it has permissions to create such a process, defined in Bizagi Studio under Security > New case definition. If the Stakeholder is not enabled to create such a process, the Action will not display.

Properties

Every control has properties that allow you to customize its behavior in the Work Portal. However, some properties are exclusive to a specific control. The following are properties exclusive to the Action Launcher control:

Basic Tab

PROPERTYDESCRIPTION
Data sourceThe Entity from where the actions are taken to create each button. Only the actions defined in this entity will be rendered. If the data source is a related entity, Bizagi will show actions if the related entity is filled-in. If the related entity is null, no buttons will be shown.
Additional xpathsDefine the data of the current process that must be injected in each of the forms, expressions, or process entities launched, as end users activate Actions from the Actions launcher. The Xpaths sent will be mapped automatically when the target entities have a direct relationship with them. Otherwise, the relationship to be mapped has to be created as a Hint.
TagsAllows you to hide/show actions related to one or more categories. Click on ActionLauncher10 to display the list of tags available for the selected Data source. This property is visible only when one or more actions have Categories defined. The categories for the actions are defined in Step 4 of the advanced configuration wizard.
Select a templateExpand the Select property's drop-down list and select one of the four options:
- None: Select this value when it is not necessary to display an Entity template for the control.
- Default: Select this value when you want to display the default template of the chosen Entity. Bizagi uses a basic template that chooses random attributes of the entity to which a record belongs.
- New Template: This will open the Template wizard.
- Select a Form: Choose from a list of templates previously defined for the Entity.
Max itemsDefines the maximum number of actions to be rendered. When the number of actions available exceeds this number, the extra number of actions will be grouped in an expandable list.
HorizontalDefines whether the actions will be displayed horizontally or vertically. Default value is true (horizontal).
Allow to SearchDisplays a Search box in order to find the required action. This property is enabled when the Horizontal property is false.
Multiple selectionDefines whether the selection of the actions will be multiple (true) or single (false). Default value is true. When false, the user may select one Action or none at all, but no more than one.
Is Exclusive?This property is available when the Multiple selection property is false. When this property is true (exclusive), the user must select one action. Otherwise (not exclusive), the user can select one or any option at all. Default value is false.

Max Items Example

ActionLauncher01

Horizontal Example

ActionLauncher02

Example

In the next example, we will use our Bizagi Hospital project. In the Take blood sample activity, a doctor can launch several actions based on the Patient information during the completion of this task. This situation can be handled using the Action Launcher control.

Steps:

  1. Define the actions in the Doctor experience. These actions must be executed in the Patient entity. Define the visibility rules as needed. For example, the pregnancy checkups and the Breast and Cervical Cancer Early Detection will be available when the patient is a woman.

    ActionLauncher03

  2. Go to the Blood Test process and open the related form for the Take blood sample activity. Go to the Controls tab and expand Bizagi controls. Then, drag and drop the Action Launcher control.

    ActionLauncher04

  3. Open the control's properties and set the Data source. As mentioned earlier, the actions will be executed in the Patient entity, so the XPath to set will be BloodTest.Patient.

    ActionLauncher05

  4. The entities of the actions defined in Step 1 have a relation with the Patient entity, so it is required to send the information of the current patient to the actions. Select the XPath BloodTest.Patient in the Additional xpaths property.

    Click on the button

    for each additional XPath you want to add.

    ActionLauncher06

  5. As this activity already has a template for the patient, it is not necessary to select a template. To improve the space of the form, set the Max items to 3 and display the actions horizontally. Remember that the doctor may order one or more exams at this point, so keep the Multiple selection property set to true.

    ActionLauncher07

  6. Save the changes and go to the Work Portal to test the results.

    Note that when the patient is a woman, the Pregnancy checkup and the Breast and Cervical Cancer Early Detection actions are displayed:

    ActionLauncher08

    However, when the patient is a man, these exams will not be displayed in the Action Launcher control:

    ActionLauncher09

    Click on the action to add it to the list of actions to execute when the activity is completed.

    When the constructor of the selected action uses a process with a Start Form, a modal window will be displayed. When the user saves the information of the start form, the control will list the action.